package Jche.Zuoye.Laoshi;

public class Laoshi {
    private  String name;
    private  int age;
    private  int  jiaoling;
    private  String sex;

    public Laoshi() {
    }

    public Laoshi(String name, int age, int jiaoling , String sex){
        this.name=name;
        this.age=age;
        this.jiaoling=jiaoling;
        this.sex=sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getJiaoling() {
        return jiaoling;
    }

    public void setJiaoling(int jiaoling) {
        this.jiaoling = jiaoling;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public void selflntroduce(){
        System.out.println("这个老师的名字："+name+",年龄是"+age+",教龄是"+jiaoling+",性别"+sex);
    }
    public  void  giveLession(){
        System.out.println("上课");
    }
}
